package com.ruoyi.infoSiteService.controller;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.infoCandidateScores.domain.InfoCandidateScores;
import com.ruoyi.infoCandidateScores.mapper.InfoCandidateScoresMapper;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/site/candidate")
public class InfoSiteCandidateController extends BaseController {

    @Resource
    private InfoCandidateScoresMapper candidateScoresMapper;

    /*
    * 一分一段
    * */
    @GetMapping("/selectAll")
    public AjaxResult selectAll(InfoCandidateScores candidateScores){
        List<InfoCandidateScores> infoCandidateScores = candidateScoresMapper.selectInfoCandidateScoresList(candidateScores);
        return AjaxResult.success(infoCandidateScores);
    }

}
